//路由页面
import React from 'react';
import {BrowserRouter as Router,Routes,Route } from 'react-router-dom'
import Login from './Login'
import AdminIndex from './AdminIndex';
// import AddAritcle from './AddAritcle'
// import ArticleList from './AriticleList';

function Main(){
    return(
        <Router>
            <Routes>
                <Route path="/" element={<Login />} />
                <Route path="index/*" element={<AdminIndex />} />
                {/* <Route path="/index/add" element={<AddAritcle />} />
                <Route path="/index/list" element={<ArticleList />} /> */}
            </Routes>
        </Router>
    )
}

export default Main;